From: Florian Müllner Date: Tue, 6 Sep 2022 14:37:25 +0000 (+0200) Subject: loginManager: Fix canRebootToBootLoaderMenu() result X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~446^2^2~32 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=17a2726e643f824f856407a092313d798b3208cd;p=gnome-shell.git loginManager: Fix canRebootToBootLoaderMenu() result Since commit a3db9093834, the `result` variable holds the destructured result of the D-Bus call, not the results array as previously. Part-of: --- diff --git a/js/misc/loginManager.js b/js/misc/loginManager.js index 6549fe5ad..94d62e819 100644 --- a/js/misc/loginManager.js +++ b/js/misc/loginManager.js @@ -164,8 +164,8 @@ var LoginManagerSystemd = class extends Signals.EventEmitter { try { const [result] = await this._proxy.CanRebootToBootLoaderMenuAsync(); - needsAuth = result[0] === 'challenge'; - canRebootToBootLoaderMenu = needsAuth || result[0] === 'yes'; + needsAuth = result === 'challenge'; + canRebootToBootLoaderMenu = needsAuth || result === 'yes'; } catch (error) { canRebootToBootLoaderMenu = false; needsAuth = false;